export interface IHomeStore { // 门店
	id: number
	storeName: string
	address: string
	description: string
	phone: string
	latitude: number
	longitude: number
	status: number
	status_value: number
	sort: number 
	openingTime: string
	closingTime: string
	listImage: string
	distance: number
}

export interface IShopCategory { // 商城商品分类
	id: number,
	categoryName: string,
	level: number,
	parentId: number,
	sort: number,
	icon: string,
	status: number,
	parentCategoryName: string,
	children: Array<IHomeStore>
}



export interface ISpec {
	specId: number,
	specName: string,
	specValue: string
}

export interface IStoreGoods { // 门店商品
	id: number,
	name: string,
	description: string,
	sellingPrice: number,
	cashPledge: number,
	status: number,
	statusValue: string,
	sort: number,
	categoryIndex: number,
	categoryName: string
	totalProductPrice: number
	listImage: string
	detailImage: Array<string>
	originalPrice: number
	sold: number
	businessType: number
	productDetail: Array<{
		sku: string,
		name: string,
		originalPrice: number,
		sellingPrice: number,
		cashPledge: number,
		sold: number,
		sort: number,
		specId: number
		isDefault: number,
		status: number,
		specCombo: Array<ISpec>
	}>
	store: IHomeStore
}

export interface IUserInfo { // 用户信息
	id: number,
	identity: string,
	username: string,
	nickName: string,
	phone: string,
	email: string,
	status: number,
	statusValue: string,
	paymentPwdFlag: number | string,
	portrait: string
	userRelations: {
	    id: number,
	    identity: string,
	    levels: number,
	    invitationCode: string,
	    parentIdentity: string
	}
}


export interface IAssetsInfo {
	goldBalance: number
	jindouBalance: number
}


export interface IActivityList {
	description: string,
	faceValue: number,
	id: number,
	name: string,
	originalPrice: number,
	sellingPrice: number,
	sort: number,
	status: number
}

export interface IOrder{ // 订单信息
	id: number
	code: string
	orderId: number,
	productId: number,
	productQuantity: number,
	productPrice: number,
	productSumPrice: number,
	depositPrice: number,
	totalDepositPrice: number,
	totalProductPrice: number
	userIdentity: string,
	lockPassword: string
	payType: number,
	payCode: string
	payId: string,
	payStatus: 1 | 2 | 3 | 4 | 5 | 6 | 7,
	orderStatus: number,
	orderNote: string
	createdAt: string
	status: 1 | 2 | 3 | 4 
	price: number
	depositStatus: number
	product: {
		sku: string,
		name: string,
		originalPrice: number,
		sellingPrice: number,
		cashPledge: number,
		sold: number,
		sort: number,
		isDefault: number,
		status: number,
		id: 11, 
		listImage: string,
		detailImage: Array<string>,
		description: string, 
		productDetail: {
			sku: string,
			name: string,
			originalPrice: number,
			sellingPrice: number,
			cashPledge: number,
			sold: number,
			sort: number,
			isDefault: number,
			status: number,
			specCombo: Array<ISpec>
		}
	},
	remark: string
	store: {
	    id: number,
	    storeName: string,
	    address: string,
	    description: string,
	    phone: string,
	    latitude: number,
	    longitude: number,
	    openingTime: string,
	    closingTime: string,
	    status: number,
	    lockPassword: string
	}
	
}

export interface IRankList {//用户收益排名结构体
	identity: string, 
	portrait: string,
	nickname: string,
	phone: string,
	earnings: number,
	rank: number
}

export interface IMyProperty {
	cumulativeEarnings: number, //// 累计收益
	todayEarnings: number, //今日收益
	pendingIncome: number, // 待入账
	availableForWithdrawal: number,  //可提现
	inWithdrawal: number, // 提现中
	withdrawn: number, // 已提现
	immediateCount: number
	totalCount: number
	listUserRank: Array<IRankList> 
}

export interface IWithdrawalRecord {
	id: number,
	userIdentity: string,
	cardholder: string,
	bank: string,
	bankCardNumber: string,
	bankOfDeposit: string,
	balance: number,
	status: 1 | 2 | 3 | 4 
	created_at: string
}

export interface IAddress {
	id?: number
	names: string,
	phone: string,
	Province?: string,
	province?: string,
	city: string,
	prefecture: string,
	street: string,
	defaultFlag: number
	detailAddress: string
	identity: string
}

export interface IReservationInfo { // 预约详情
		id: number,
	    code: string,
	    orderCode: string,
	    productId: number,
	    originalPrice: number,
	    price: number,
	    depositPrice: number,
	    userIdentity: string,
	    appointmentTime: string,
	    status: number,
	    depositStatus: number,
	    remark: string,
	    createdAt: string,
	    user: {
	        identity: string,
	        username: string,
	        nickName: string,
	        phone: string,
	        portrait: string
	    },
	    product: {
	        name: string,
	        listImage: string
	        detailImage: Array<string>,
	        description: string,
	        sold: number
	    },
	    deposit: {
	        id: number,
	        orderCode: string,
	        orderDetailCode: string,
	        depositPrice: number,
	        payType: number,
	        payTime: string,
	        payRemark: string,
	        returnDeposit: number,
	        returnType: number,
	        returnTime: string,
	        returnRemark: string,
	        status: number
	    },
	    store: {
	        id: number,
	        storeName: string,
	        address: string,
	        description: string,
	        phone: string,
	        latitude: number,
	        longitude: number,
	        openingTime: string,
	        closingTime: string,
	        status: number,
	        lockPassword: string,
	        storeCustomer: {
	            id: number,
	            nickName: string,
	            phone: string
	        }
	    }
	}
}
 